package com.t3go.t3_map.utils;

import android.text.TextUtils;

import com.t3go.t3_map.entity.Annotation;
import com.t3map.api.map.model.T3Marker;
import com.t3map.api.map.model.T3Polyline;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class MapUtils {

    public static String getAssetPath(String name) {
        return "flutter_assets/packages/t3_assets/" + name;
    }

    public static String findPolylineId(Map<String, T3Polyline> polylineMap, T3Polyline polyline) {
        Set<Map.Entry<String, T3Polyline>> set = polylineMap.entrySet();
        for (Map.Entry<String, T3Polyline> item : set) {
            if (item.getValue() == polyline) {
                return item.getKey();
            }
        }
        return null;
    }
}
